<html>
<head>
    <title>资源管理</title>
</head>
<body>

<div>
    <!-- 查询条件 -->
    <div class="row">
        <div class="col-sm-12">
            <div class="form-inline">
                <div class="form-group">
                    <label class="control-label">资源名称：</label>
                    <input placeholder="资源名称" id="nameSearch" class="form-control">
                </div>
            </div>
            <br>
        </div>
    </div>

    <!-- 工具栏 -->
    <div class="row">
        <div class="col-sm-12">
            <div class="pull-left">
                <button class="btn btn-sm btn-primary" id="addBtn">
                    <i class="fa fa-plus"></i> 添加
                </button>
                <button class="btn btn-sm btn-success" id="modifyBtn">
                    <i class="fa fa-file-text-o"></i> 修改
                </button>
                <button class="btn btn-sm btn-danger" id="delBtn">
                    <i class="fa fa-trash-o"></i> 删除
                </button>
            </div>
            <div class="pull-right">
                <button class="btn btn-sm btn-info" id="searchBtn">
                    <i class="fa fa-search"></i> 搜索
                </button>
            </div>
        </div>
    </div>

    <div class="row" style="margin-top: 10px;">
        <div class="col-sm-12">
            <div id="mainGrid">
                <table id="btTable" class="table table-condensed table-hover table-striped"></table>
            </div>
        </div>
    </div>

    <div id="modal">
        <form class="form-horizontal">
            <input type="hidden" id="id"/>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>资源名称</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="name" name="name">
                </div>
                <div class="col-md-2 text-right">
                    <span>上级资源</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="pId" name="pId"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>资源类型</span>
                </div>
                <div class="col-md-4">
                    <select class="form-control" id="type" name="type"></select>
                </div>
                <div class="col-md-2 text-right">
                    <span>权限字符串</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="permission" name="permission"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span>uri</span>
                </div>
                <div class="col-md-10">
                    <input class="form-control" id="uri" name="uri">
                </div>

            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>排序</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="sort" name="sort"/>
                </div>
                <div class="col-md-2 text-right">
                    <span>项目编号</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="projectNo" name="projectNo">
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span>备注</span>
                </div>
                <div class="col-md-10">
                    <textarea class="form-control" rows="5" id="remarks" name="remarks"></textarea>
                </div>
            </div>
        </form>
    </div>


</div>

<ex-section id="ScriptBody">
    <script type="text/javascript" src="${request.contextPath}/js/main/modules/sys/resourceList.js?v=<@spring.message 'js.version'/>"></script>
    <script type="text/javascript">
        pageLogic.initData = {
            modalParams: [
                {
                    width: 800,
                    height: 400,
                    title: "资源"
                }
            ],
            restUrlPrefix: "/sys/resources",
            queryMsg: {
                name: "nameSearch"
            }
        };

    </script>
</ex-section>

</body>
</html>
